<%@ page import="com.tyut.bean.Student" %>
<%@ page import="java.util.List" %>
<%@ page import="java.awt.print.Book" %><%--
  Created by IntelliJ IDEA.
  User: fantj
  Date: 19-1-7
  Time: 下午9:50
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<table border="1">
    <%
        List<Student> list = (List<Student>) request.getAttribute("list");
        for (int i = 0; i< list.size(); i++){
            Student student = list.get(i);
    %>
    <tr>
        <td><%=student.getId() %></td>
        <td><%=student.getName() %></td>
        <td><%=student.getDepartment() %></td>
        <td><%=student.getGrade() %></td>
        <td><%=student.getClazz() %></td>
        <td><%=student.getSex() %></td>
        <td><%=student.getPhone() %></td>
        <td><a href="/student?id=<%=student.getId()%>&method=edit">编辑</a></td>
        <td><a href="/student?id=<%=student.getId()%>&method=delete">删除</a> </td>
    </tr>
    <% }%>
</table>

</body>
</html>
